package com.fate.system.dto.role;

import lombok.Data;
import lombok.Getter;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import jakarta.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;

import java.io.Serial;
import java.io.Serializable;

import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;

import org.hibernate.validator.constraints.Length;

/**
 * @Author: ten.x @TableName sys_role @Date: 2024-08-09 02:02:42 @Version: V1.0
 */
@Data
@Accessors(chain = true)
@TableName(value = "sys_role")
@EqualsAndHashCode(callSuper = false)
public class RoleAddDTO implements Serializable {

  @Serial
  @TableField(exist = false)
  private static final long serialVersionUID = 1L;

  /** 角色名 */
  @NotBlank(message = "[角色名]不能为空")
  @Size(max = 255, message = "编码长度不能超过255")
  @TableField(value = "role_name")
  @Schema(description = "角色名")
  @Length(max = 255, message = "编码长度不能超过255")
  private String roleName;

  /** 角色标识 */
  @NotBlank(message = "[角色标识]不能为空")
  @Size(max = 255, message = "编码长度不能超过255")
  @TableField(value = "role_sign")
  @Schema(description = "角色标识")
  @Length(max = 255, message = "编码长度不能超过255")
  private String roleSign;

  /** 备注 */
  @Size(max = 255, message = "编码长度不能超过255")
  @TableField(value = "remark")
  @Schema(description = "备注")
  @Length(max = 255, message = "编码长度不能超过255")
  private String remark;

  /** 首页菜单id */
  @Size(max = 64, message = "编码长度不能超过64")
  @TableField(value = "home_menu_id")
  @Schema(description = "首页菜单id")
  @Length(max = 64, message = "编码长度不能超过64")
  private String homeMenuId;
}
